package com.xudm.cdg.controller;

import com.alibaba.fastjson2.JSONObject;
import com.xudm.cdg.api.TyqwApi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/qw")
public class QwController {
    private final TyqwApi qwApi;

    public QwController(TyqwApi qwApi) {
        this.qwApi = qwApi;
    }

//    @RequestMapping("/chat")
//    public JSONObject chat(String question) {
//        return qwApi.chatByQw(question);
//    }
}
